<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="__PUBLIC__/Font-Awesome-3.2.1/css/font-awesome.min.css">
    <link rel="stylesheet" href="__PUBLIC__/bootstrap-3.3.0/css/bootstrap.min.css">
    <link rel="stylesheet" href="__PUBLIC__/Home/CSS/common_before_login.css">
    <script src="__PUBLIC__/jquery.min.js"></script>
    <script src="__PUBLIC__/bootstrap-3.3.0/js/bootstrap.min.js"></script>
    <script src="__PUBLIC__/Home/JS/common_before_login.js"></script>
    <title>四人帮微博</title>
</head>
<body>
<div class="header_bar"></div>
<nav class="navbar navbar-default" role="navigation">
    <!--头部导航Logo-->
    <div class="navbar-header">
        <a class="navbar-brand logo" href="#"></a>
    </div>
    <!--搜索框-->
    <div class="collapse navbar-collapse navbar-ex1-collapse">
        <form class="navbar-form navbar-left" role="search" method="post" action="{:url('index/index/search')}" >
            <div class="form-group">
                <input type="text" class="form-control nav_search" placeholder="大家正在搜:发现一个未来影帝" id="search"/>
            </div>
            <span id="to_search"><span class="icon_box"><i class="icon-search icon-large nav_icon_search"></i></span></span>
            <span class="menu_box">
                  <ul class="nav navbar-nav navbar-right ">
                      <li class="back_home"><a href="#"  class="back_home_link" id="back_home_link"><i class="icon-home icon-2x" ></i>&nbsp;首页</a></li>
                <li class="opt"><a href="#">登录</a></li>
                <li class="opt"><a href="#">注册</a></li>
            </ul>
            </span>
        </form>
    </div>
</nav>
<div class="main">
    {__CONTENT__}
</div>
<script>
    $(function () {
       $("#to_search").click(function () {
          var searchData=$("#search").val();
          if(searchData.length==0){
              alert('搜索内容不能为空!');
              return false;
          }
          $('form').submit();
//          alert(searchData);
//          alert("{:url('index/index/search',['data'=>"+searchData+"])}");return;
//         location.href="{:url('index/index/search',['data'=>"+searchData+"])}";
       })
    })
</script>
</body>
</html>